<template lang="pug">
div
  app-header(fixed,back,title="服务政策",v-if="!$helper.isWechat")
  div(v-html="content",style="padding:.5rem;box-sizing:border-box")
</template>

<script>
import { Toast } from 'mint-ui'
import Header from 'components/Header'
export default {
  components: {
    'app-header': Header
  },
  data () {
    return {
      content: ''
    }
  },
  async created () {
    await this.loadContent()
  },
  methods: {
    async loadContent () {
      this.content = await this.$rpc.invoke('pager_getContent', ['policy']).complete()
      if (!this.content) {
        Toast('服务政策内容为空!')
      }
    }
  }
}
</script>
<style lang="stylus" scoped>
</style>
